package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_InventorySub", description = "盘点子表")
@TableName(value = "WMS_InventorySub")
public class WmsInventorySub extends FBaseEntity implements Serializable {


    
    @NotNull(message="[盘点单主表id]不能为空")
    @ApiModelProperty("盘点单主表id")
    @TableField(value = "mainId")
    private Long mainId;
    
    @NotBlank(message="[条码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barCode")
    private String barCode;
    
    @NotNull(message="[盘入状态]不能为空")
    @ApiModelProperty("盘入状态")
    @TableField(value = "type")
    private Long type;
    
    @ApiModelProperty("盘入时间")
    @TableField(value = "dateTime")
    private Date dateTime;
    
    @NotNull(message="[盘点物料id]不能为空")
    @ApiModelProperty("盘点物料id")
    @TableField(value = "materialID")
    private Long materialID;
    
    @NotBlank(message="[盘点数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("盘点数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;
    
    @NotBlank(message="[盘点人]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("盘点人")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "operator")
    private String operator;
    
    @NotNull(message="[库位]不能为空")
    @ApiModelProperty("库位")
    @TableField(value = "areaID")
    private Long areaID;






}

